package com.sh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sh.dao.AccountDao;
import com.sh.entity.User;
import com.sh.service.AccountService;

@Service()
public class AccountServiceImpl implements AccountService{
	@Autowired
	private AccountDao accountDao;

	/* (non-Javadoc)
	 * @see com.sh.service.AccountService#getUserByUserName(java.lang.String)
	 * 模拟生成  用户
	 */
	@Override
	public User getUserByUserName(String username) {
		// TODO Auto-generated method stub 
		User user = new User();
		user.setUserName("admin");
		user.setUserId("123456");
		user.setPwd("admin");

		if(user.getUserName().equals(username)){
			return user;
		}
		return null;
	}



}
